using System;

namespace RBAC.Domain.Dto.Output
{
    /// <summary>
    /// 物料列表数据传输对象
    /// 用于物料基本档页面列表展示
    /// </summary>
    public class GetMaterialListDto
    {
        /// <summary>
        /// 物料ID
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 物料编码
        /// </summary>
        public string MaterialCode { get; set; } = string.Empty;

        /// <summary>
        /// 物料名称
        /// </summary>
        public string MaterialName { get; set; } = string.Empty;

        /// <summary>
        /// 规格型号
        /// </summary>
        public string? Specification { get; set; }

        /// <summary>
        /// 规格描述
        /// </summary>
        public string? SpecificationDesc { get; set; }

        /// <summary>
        /// 主计量单位
        /// </summary>
        public string? Unit { get; set; }

        /// <summary>
        /// 供应方式
        /// </summary>
        public string? SupplyMethod { get; set; }

        /// <summary>
        /// 图纸号
        /// </summary>
        public string? DrawingNumber { get; set; }

        /// <summary>
        /// 物料状态：1-正常，0-停用
        /// </summary>
        public int Status { get; set; }

        /// <summary>
        /// 物料分类ID
        /// </summary>
        public long? TypeId { get; set; }

        /// <summary>
        /// 物料分类名称
        /// </summary>
        public string TypeName { get; set; } = string.Empty;

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string? CreateBy { get; set; }
    }
}